package com.yand.job;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yand.api.entity.job.TSysJob;
import com.yand.api.service.job.JobService;
import com.yand.mapper.job.TSysJobMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 定时任务的实现类
 *
 */
@Service
public class JobServiceImpl implements JobService {

    @Autowired
    private TSysJobMapper jobMapper;


    @Override
    public PageInfo<TSysJob> queryRoleList(TSysJob job) {
        PageHelper.startPage(job.getPageNum(), job.getPageSize());

        return PageInfo.of(jobMapper.selectJobList(job));
    }
}
